home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_023 / ver30 / cinfo.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  90 lines

  1. /*
  2.  * Name:    MicroEMACS
  3.  *        Character class tables.
  4.  * Version:    29
  5.  * Last edit:    05-Feb-86
  6.  * By:        rex::conroy
  7.  *        decvax!decwrl!dec-rhea!dec-rex!conroy
  8.  *
  9.  * Do it yourself character classification
  10.  * macros, that understand the multinational character set,
  11.  * and let me ask some questions the standard macros (in
  12.  * ctype.h) don't let you ask.
  13.  */
  14. #include    "def.h"
  15.  
  16. /*
  17.  * This table, indexed by a character drawn
  18.  * from the 256 member character set, is used by my
  19.  * own character type macros to answer questions about the
  20.  * type of a character. It handles the full multinational
  21.  * character set, and lets me ask some questions that the
  22.  * standard "ctype" macros cannot ask.
  23.  */
  24. char    cinfo[256] = {
  25.     _C,        _C,        _C,        _C,    /* 0x0X    */
  26.     _C,        _C,        _C,        _C,
  27.     _C,        _C,        _C,        _C,
  28.     _C,        _C,        _C,        _C,
  29.     _C,        _C,        _C,        _C,    /* 0x1X    */
  30.     _C,        _C,        _C,        _C,
  31.     _C,        _C,        _C,        _C,
  32.     _C,        _C,        _C,        _C,
  33.     0,        0,        0,        0,    /* 0x2X    */
  34.     _W,        0,        0,        _W,
  35.     0,        0,        0,        0,
  36.     0,        0,        0,        0,
  37.     _W,        _W,        _W,        _W,    /* 0x3X    */
  38.     _W,        _W,        _W,        _W,
  39.     _W,        _W,        0,        0,
  40.     0,        0,        0,        0,
  41.     0,        _U|_W,        _U|_W,        _U|_W,    /* 0x4X    */
  42.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  43.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  44.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  45.     _U|_W,        _U|_W,        _U|_W,        _U|_W,    /* 0x5X    */
  46.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  47.     _U|_W,        _U|_W,        _U|_W,        0,
  48.     0,        0,        0,        _W,
  49.     0,        _L|_W,        _L|_W,        _L|_W,    /* 0x6X    */
  50.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  51.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  52.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  53.     _L|_W,        _L|_W,        _L|_W,        _L|_W,    /* 0x7X    */
  54.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  55.     _L|_W,        _L|_W,        _L|_W,        0,
  56.     0,        0,        0,        _C,
  57.     0,        0,        0,        0,    /* 0x8X    */
  58.     0,        0,        0,        0,
  59.     0,        0,        0,        0,
  60.     0,        0,        0,        0,
  61.     0,        0,        0,        0,    /* 0x9X    */
  62.     0,        0,        0,        0,
  63.     0,        0,        0,        0,
  64.     0,        0,        0,        0,
  65.     0,        0,        0,        0,    /* 0xAX    */
  66.     0,        0,        0,        0,
  67.     0,        0,        0,        0,
  68.     0,        0,        0,        0,
  69.     0,        0,        0,        0,    /* 0xBX    */
  70.     0,        0,        0,        0,
  71.     0,        0,        0,        0,
  72.     0,        0,        0,        0,
  73.     _U|_W,        _U|_W,        _U|_W,        _U|_W,    /* 0xCX    */
  74.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  75.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  76.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  77.     0,        _U|_W,        _U|_W,        _U|_W,    /* 0xDX    */
  78.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  79.     _U|_W,        _U|_W,        _U|_W,        _U|_W,
  80.     _U|_W,        _U|_W,        0,        _W,
  81.     _L|_W,        _L|_W,        _L|_W,        _L|_W,    /* 0xEX    */
  82.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  83.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  84.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  85.     0,        _L|_W,        _L|_W,        _L|_W,    /* 0xFX    */
  86.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  87.     _L|_W,        _L|_W,        _L|_W,        _L|_W,
  88.     _L|_W,        _L|_W,        0,        0
  89. };
  90.